package com.edu.labmanager.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2025-05-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("email")
public class Email implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 邮件唯一标识ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;


    /**
     * 用户ID
     */
    @TableField("user_id")
    private Integer userId;

    private String sendperson;
    /**
     * 用户邮箱
     */
    @TableField("email")
    private String email;

    /**
     * 注册时间
     */
    @TableField("created_at")
    private LocalDateTime createdAt;
    // 手动加一个无参构造函数（Lombok 一般已生成）
    private Integer labId;

}
